<?php
class ActivityConf_setInfo {
	function setInfo($game) {
		$gameLang = MooConfig::get('game_lang.zh_en');
		
		if($gameLang[$game]) {
			$game = $gameLang[$game];
		}
		
		$activityConf = MooConfig::get('activityconfig');
		if(!$activityConf) {
			return false;
		}
		
		$platConf = $activityConf['platConf'];
		
		$activity = MooObj::get('ActivityConf')->getActivityNames($game);
		if(!$activity) {
			return false;
		}
		
		$platform = $platConf[$game]['platform'];
		
		MooView::set('platforms', $platform);
		MooView::set('activitys', $activity);
		
		return true;
	}
}